﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yarp.ReverseProxy.Idenmptency.Modles
{
    /// <summary>
    /// 用来标记Yarp路由是否需要幂等性检查
    /// </summary>
    public class YarpRouteIdenmpotency
    {
       public readonly bool IsIdenmpotency = false;
       public readonly string YarpRouteId = null;
       public YarpRouteIdenmpotency(bool isIdenmpotency, string yarpRouteId)
        {
            if (string.IsNullOrWhiteSpace(yarpRouteId)) throw new ArgumentNullException(nameof(yarpRouteId));
            YarpRouteId = yarpRouteId;
            IsIdenmpotency = isIdenmpotency;
        }
    }
}
